package com.bestcem.xm.member.grpc.service.param;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * 排序 参数校验
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/7/20
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class SortParam {

    @NotNull(message = "排序字段不能为空")
    private String property;

    @NotNull(message = "顺序不能为空")
    private Integer direction;
}
